package com.strongwell.awe.model;

import com.strongwell.awe.base.model.BaseModel;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;

import java.sql.Timestamp;
import java.util.Date;

public class WxTokenEntity extends BaseModel {
    private static final long serialVersionUID = 1L;

    private Long id;
    private String token;
    private Long expires_in;
    private String appid;
    private String appsecret;
    private Timestamp createtime;

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public Long getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(Long expires_in) {
        this.expires_in = expires_in;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getAppsecret() {
        return appsecret;
    }

    public void setAppsecret(String appsecret) {
        this.appsecret = appsecret;
    }

    public Timestamp getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        return  ReflectionToStringBuilder.toString(this);
    }
}
